﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Admin_Login" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Admin</title>
</head>
<body style="background: #396BB2 url(../Images/gradient-bg.gif) repeat-x;">
    <form id="formLogin" runat="server">
    <div>
        <ext:ResourceManager ID="ResourceManagerLogin" runat="server" Theme="Gray" />
        <ext:KeyMap ID="KeyMapLogin" runat="server" Target="Ext.getBody()">
            <ext:KeyBinding>
                <Keys>
                    <ext:Key Code="ENTER" />
                    <ext:Key Code="RETURN" />
                </Keys>
                <Listeners>
                    <Event Handler="#{btnLogin}.fireEvent('click');" />
                </Listeners>
            </ext:KeyBinding>
        </ext:KeyMap>
        <center>
            <br />
            <br />
            <br />
            <ext:Image ID="imgLogo" runat="server" ImageUrl="../Images/logo_arbolandia-01.png"
                Height="118" Width="330">
            </ext:Image>
            <br />
            <br />
        </center>
        <ext:Window ID="WindowLogin" runat="server" Closable="false" Resizable="false" Height="140"
            Icon="Lock" Title="Acceso Admin" Draggable="false" Width="380" Modal="false"
            Padding="5" Layout="FormLayout">
            <Items>
                <ext:FormPanel ID="FormPanelLogin" runat="server" Border="false" MonitorValid="true"
                    BodyStyle="background-color:transparent;" Layout="Form" Padding="5">
                    <Defaults>
                        <ext:Parameter Name="AllowBlank" Value="false" Mode="Raw" />
                        <ext:Parameter Name="MsgTarget" Value="side" />
                    </Defaults>
                    <Items>
                        <ext:TextField ID="txtUsername" runat="server" ReadOnly="false" FieldLabel="Usuario"
                            AllowBlank="false" BlankText="Usuario Requerido" AnchorHorizontal="80%" />
                        <ext:TextField ID="txtPassword" runat="server" ReadOnly="false" InputType="Password"
                            FieldLabel="Contraseña" AllowBlank="false" BlankText="Contraseña Requerida" AnchorHorizontal="80%" />
                    </Items>
                </ext:FormPanel>
                <%--<ext:Checkbox ID="chkRememberMe" runat="server" BoxLabel="Recordarme">
                </ext:Checkbox>--%>
                <%--<ext:HyperLink ID="hlkPasswordRecovery" runat="server" Text="Olvido su Password?">
                </ext:HyperLink>--%>
            </Items>
            <Buttons>
                <ext:Button ID="btnLogin" runat="server" Text="Entrar" Icon="Accept">
                    <DirectEvents>
                        <Click OnEvent="btnLogin_Click">
                            <EventMask MinDelay="200" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
    </div>
    </form>
</body>
</html>
